package com.grpcserver.webapi;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author: LCG
 * @date: 2022-10-25 19:28:02
 * @description:
 **/
@RestController
public class TestWebController {

    @RequestMapping("test02")
    public Object test02(){
        System.out.println("============tets02====");
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:m:ss");
        String format = simpleDateFormat.format(new Date());
        System.out.println("***********************"+format);
        return "test02";
    }

}
